package edu.ybu.manage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ybu.manage.mapper.EntorMapper;
import edu.ybu.manage.pojo.Entor;
import edu.ybu.manage.service.EntorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EntorServiceImpl extends ServiceImpl<EntorMapper, Entor> implements EntorService {
    @Autowired
    private EntorMapper entorMapper;

    public Integer insert(Entor entor) {
        int insert = entorMapper.insert(entor);
        return insert;
    }

    @Override
    public Integer update(Entor entor) {
        int i = entorMapper.updateById(entor);
        return i;
    }

    @Override
    public Integer delect(Integer id) {
        int i = entorMapper.deleteById(id);
        return i;

    }


}
